<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!-- Copyright 1997 The Open Group, All Rights Reserved -->
<title>&lt;grp.h&gt;</title>
</head><body bgcolor=white>
<center>
<font size=2>
The Single UNIX &reg; Specification, Version 2<br>
Copyright &copy; 1997 The Open Group

</font></center><hr size=2 noshade>
<h4><a name = "tag_000_005_875">&nbsp;</a>NAME</h4><blockquote>
grp.h - group structure
</blockquote><h4><a name = "tag_000_005_876">&nbsp;</a>SYNOPSIS</h4><blockquote>
<pre><code>

#include &lt;grp.h&gt;
</code>
</pre>
</blockquote><h4><a name = "tag_000_005_877">&nbsp;</a>DESCRIPTION</h4><blockquote>
The
<i>&lt;grp.h&gt;</i>
header declares the structure <b>group</b> which includes the
following members:
<pre>
<code>
char   *gr_name the name of the group
gid_t   gr_gid  numerical group ID
char  **gr_mem  pointer to a null-terminated array of character
                pointers to member names
</code>
</pre>
<p>
The
<b>gid_t</b>
type is defined as described in
<i><a href="systypes.h.html">&lt;sys/types.h&gt;</a></i>.
<p>
The following are declared as functions and may also be defined
as macros.
Function prototypes must be provided for use with an ISO C
compiler.
<pre>
<code>
struct group  *<a href="getgrgid.html">getgrgid</a>(gid_t);
struct group  *<a href="getgrnam.html">getgrnam</a>(const char *);
int            <a href="getgrgid_r.html">getgrgid_r</a>(gid_t, struct group *, char *,
                   size_t, struct group **);
int            <a href="getgrnam_r.html">getgrnam_r</a>(const char *, struct group *, char *,
                   size_t , struct group **);
struct group  *<a href="getgrent.html">getgrent</a>(void);
void           <a href="endgrent.html">endgrent</a>(void);
void           <a href="setgrent.html">setgrent</a>(void);
</code>
</pre>
</blockquote><h4><a name = "tag_000_005_878">&nbsp;</a>APPLICATION USAGE</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_005_879">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_005_880">&nbsp;</a>SEE ALSO</h4><blockquote>
<i><a href="endgrent.html">endgrent()</a></i>,
<i><a href="getgrgid.html">getgrgid()</a></i>,
<i><a href="getgrgid.html">getgrgid_r()</a></i>,
<i><a href="getgrnam.html">getgrnam()</a></i>,
<i><a href="systypes.h.html">&lt;sys/types.h&gt;</a></i>.
</blockquote><hr size=2 noshade>
<center><font size=2>
UNIX &reg; is a registered Trademark of The Open Group.<br>
Copyright &copy; 1997 The Open Group
<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]

</font></center><hr size=2 noshade>
</body></html>
